package com.bs.biaoge.util.excel;

import com.bs.biaoge.entity.User;

import java.lang.reflect.InvocationTargetException;

/**
 * @author 小姚
 * @pakeageName:com.bs.biaoge.util.excel
 * @ClassName:ExcelPropertyTest
 * @Descirption:
 * @data 2023/3/4 23:11
 */
//获取所有属性的测试类
public class ExcelPropertyTest {
    public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, InstantiationException {
        ExcelProperty<User> excelUser=new ExcelProperty<>();
        /*Object[] objects = excelUser.getProperty(User.class);
        for (Object object : objects) {
            System.out.println("user中所有的属性"+object.toString());
        }*/

        User user= excelUser.getPropertyValue(User.class, new Object[]{9, "jj", "p"});
        System.out.println();
        System.out.println(user);

    }
}
